<?php
namespace Model;

use Sfsn\Core\Model\Model;

class Cx extends Model
{

    public $rules = [
        'module' => [
            'rangelength' => [
                20,
                25
            ],
            'email'
        ],
        'id' => [
            'unique'
        ]
    ];

    public $message = [
        'module' => [
            'email' => '邮箱',
            'rangelength' => '长度'
        ],
        'id' => [
            'unique' => '唯一'
        ]
    ];

    public function tableName()
    {
        return 'cx';
    }
}
